derivative of e^x by first principle mathod